<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//公共接口
Route::group('common_api', function () {
    Route::group('config', function () {
        Route::get('listConfigJson', 'config/listConfigJson');
        Route::get('getFavicon', 'config/getFavicon');
    });
    Route::group('oss', function () {
        Route::post('file', 'Oss/uploadFile');
        Route::post('video', 'Oss/uploadVideo');
        Route::post('img', 'Oss/uploadImg');
        Route::post('audio', 'Oss/uploadAudio');
        Route::post('imgRichText', 'Oss/imgRichText');
        Route::post('download', 'Oss/download');
        Route::get('sts', 'Oss/sts');
    });
    Route::group('print', function () {
        Route::any('skRecordPrint', 'CommonPrint/skRecordPrint');//上课记录打印
    });
});

//登录
Route::group(function () {
    Route::post('login', 'Login/login');
    Route::get('getUserInfo', 'User/getUserInfo');
});

//首页
Route::group(function () {
    Route::get('getCourseClassHourSalaryLine', 'Home/getCourseClassHourSalaryLine');
    Route::get('getTjData', 'Home/getTjData');
});

//预约管理
Route::group('core/coreCourseAppointment', function () {
    Route::post('listPage', 'core.CoreCourseAppointment/listPage');
    Route::post('get', 'core.CoreCourseAppointment/get');
    Route::post('trainerAppointment', 'core.CoreCourseAppointment/trainerAppointment');
    Route::post('timeAppointment', 'core.CoreCourseAppointment/timeAppointment');
    Route::post('updateAppointment', 'core.CoreCourseAppointment/updateAppointment');
    Route::post('cancelAppointment', 'core.CoreCourseAppointment/cancelAppointment');
});

//体验课订单
Route::group('core/coreTrialClassOrder', function () {
    Route::post('listPage', 'core.CoreTrialClassOrder/listPage');
    Route::post('saveOrUpdate', 'core.CoreTrialClassOrder/saveOrUpdate');
    Route::post('get', 'core.CoreTrialClassOrder/get');
    Route::post('placeTrialClassOrder', 'core.CoreTrialClassOrder/placeTrialClassOrder');
    Route::post('trialClassAppointment', 'core.CoreTrialClassOrder/trialClassAppointment');
});


//上课记录
Route::group('learn/learnSkRecord', function () {
    Route::post('listPage', 'learn.LearnSkRecord/listPage');
    Route::post('get', 'learn.LearnSkRecord/get');
    Route::post('studentEvaluate', 'learn.LearnSkRecord/studentEvaluate');
    Route::post('updateValid', 'learn.LearnSkRecord/updateValid');
    Route::post('exportExcel', 'learn.LearnSkRecord/exportExcel');
});

//学习记录
Route::group('learn/learnSubjectQuestionRecord', function () {
    Route::post('listPage', 'learn.LearnSubjectQuestionRecord/listPage');
    Route::post('get', 'learn.LearnSubjectQuestionRecord/get');
});

//升级记录
Route::group('organ/organizationLevelRw', function () {
    Route::post('listPage', 'organization.OrganizationLevelRw/listPage');
});

//学习记录答题记录
Route::group('learn/learnSubjectQuestionAnswerRecord', function () {
    Route::post('listPage', 'learn.LearnSubjectQuestionAnswerRecord/listPage');
    Route::post('get', 'learn.LearnSubjectQuestionAnswerRecord/get');
});

//测试记录
Route::group('learn/learnVocabularyRecord', function () {
    Route::post('listPage', 'learn.LearnVocabularyRecord/listPage');
    Route::post('get', 'learn.LearnVocabularyRecord/get');
    Route::get('getReport', 'learn.LearnVocabularyRecord/getReport');
});

//上课-阅读理解记录
Route::group('learn/learnReading', function () {
    Route::post('listPage', 'learn.LearnReading/listPage');
    Route::post('get', 'learn.LearnReading/get');
    Route::post('exportExcel', 'learn.LearnReading/exportExcel');
});

//听力记录
Route::group('learn/learnHearingRecord', function () {
    Route::post('listPage', 'learn.LearnHearingRecord/listPage');
    Route::post('get', 'learn.LearnHearingRecord/get');
});

//21天抗遗忘
Route::group('learn/learnTwentyAntiForgetting', function () {
    Route::post('listPage', 'learn.learnTwentyAntiForgetting/listPage');
    Route::post('get', 'learn.learnTwentyAntiForgetting/get');
    Route::post('updateTrainer', 'learn.learnTwentyAntiForgetting/updateTrainer');
    Route::post('updateTrainerSkAll', 'learn.learnTwentyAntiForgetting/updateTrainerSkAll');
    Route::get('getReport', 'learn.learnTwentyAntiForgetting/getReport');
});

//全科抗遗忘
Route::group('learn/learnSubjectAntiForgetting', function () {
    Route::post('listPage', 'learn.LearnSubjectAntiForgetting/listPage');
    Route::post('get', 'learn.LearnSubjectAntiForgetting/get');
    Route::post('updateTrainer', 'learn.LearnSubjectAntiForgetting/updateTrainer');
    Route::post('updateTrainerSkAll', 'learn.LearnSubjectAntiForgetting/updateTrainerSkAll');
    Route::get('getReport', 'learn.LearnSubjectAntiForgetting/getReport');
});

//阅读理解文章记录
Route::group('learn/learnReadingArticle', function () {
    Route::post('listPage', 'learn.learnReadingArticle/listPage'); //分页查询
    Route::post('get', 'learn.learnReadingArticle/get');//查询
    Route::post('del', 'learn.learnReadingArticle/del');//删除
});

//学习-阅读理解答题记录
Route::group('learn/learnReadingArticleAnswer', function () {
    Route::post('listPage', 'learn.learnReadingArticleAnswer/listPage'); //分页查询
    Route::post('get', 'learn.learnReadingArticleAnswer/get');//查询
    Route::post('del', 'learn.learnReadingArticleAnswer/del');//删除
});

//听力答题记录
Route::group('learn/learnHearingAnswerRecord', function () {
    Route::post('listPage', 'learn.learnHearingAnswerRecord/listPage'); //分页查询
    Route::post('get', 'learn.learnHearingAnswerRecord/get');//查询
});

//课时明细
Route::group('core/coreClassHourDetail', function () {
    Route::post('listPage', 'core.coreClassHourDetail/listPage');
    Route::post('get', 'core.coreClassHourDetail/get');
    Route::post('exportExcel', 'core.coreClassHourDetail/exportExcel');
});

//课时交易流水
Route::group('core/coreClassHourRw', function () {
    Route::post('listPage', 'core.coreClassHourRw/listPage'); //分页查询
    Route::post('get', 'core.coreClassHourRw/get');//查询
});

//佣金流水
Route::group('core/coreBrokerageRw', function () {
    Route::post('listPage', 'core.coreBrokerageRw/listPage'); //分页查询
    Route::post('get', 'core.coreBrokerageRw/get');//查询
});

//佣金提现
Route::group('core/coreBrokerageWithdraw', function () {
    Route::post('listPage', 'core.coreBrokerageWithdraw/listPage'); //分页查询
    Route::post('get', 'core.coreBrokerageWithdraw/get');//查询
    Route::post('withdrawAudit', 'core.coreBrokerageWithdraw/withdrawAudit');//查询
});

//学员
Route::group('student/student', function () {
    Route::post('listPage', 'student.Student/listPage');
    Route::post('listSelectPage', 'student.Student/listSelectPage');
    Route::post('listSelectClassHourPage', 'student.Student/listSelectClassHourPage');
    Route::post('get', 'student.Student/get');
    Route::post('enable', 'student.Student/enable');
    Route::post('saveOrUpdate', 'student.student/saveOrUpdate');
});

//学员开通课程
Route::group('student/studentCourse', function () {
    Route::post('listPage', 'student.StudentCourse/listPage');
    Route::post('get', 'student.StudentCourse/get');
    Route::post('saveOrUpdate', 'student.StudentCourse/saveOrUpdate');
    Route::post('del', 'student.StudentCourse/del');
    Route::post('openCourse', 'student.StudentCourse/openCourse');
});

//账户课时
Route::group('core/coreAccountClassHour', function () {
    Route::post('listPage', 'core.CoreAccountClassHour/listPage');
    Route::post('get', 'core.CoreAccountClassHour/get');
    Route::post('deductOrgan', 'core.CoreAccountClassHour/deductOrgan');
    Route::post('deductStudent', 'core.CoreAccountClassHour/deductStudent');
    Route::post('rechargeOrgan', 'core.CoreAccountClassHour/rechargeOrgan');
    Route::post('rechargeStudent', 'core.CoreAccountClassHour/rechargeStudent');
    Route::post('refundOrgan', 'core.CoreAccountClassHour/refundOrgan');
});

//年级
Route::group('student/grade', function () {
    Route::post('listPage', 'student.Grade/listPage');
    Route::post('listSelectPage', 'student.Grade/listSelectPage');
    Route::post('get', 'student.Grade/get');
    Route::post('saveOrUpdate', 'student.Grade/saveOrUpdate');
    Route::post('del', 'student.Grade/del');
});

//机构
Route::group('organ/organization', function () {
    Route::post('listPage', 'organization.Organization/listPage');
    Route::post('listSelectPage', 'organization.Organization/listSelectPage');
    Route::post('listLevelSelectPage', 'organization.Organization/listLevelSelectPage');
    Route::post('get', 'organization.Organization/get');
    Route::post('saveOrUpdate', 'organization.organization/saveOrUpdate');
    Route::post('enable', 'organization.organization/enable');
});

//机构开户申请
Route::group('organ/organizationOpenApply', function () {
    Route::post('listPage', 'organization.OrganizationOpenApply/listPage');
    Route::post('get', 'organization.OrganizationOpenApply/get');
    Route::post('del', 'organization.OrganizationOpenApply/del');
    Route::post('openApply', 'organization.OrganizationOpenApply/openApply');
    Route::post('audit', 'organization.OrganizationOpenApply/audit');
});


//合伙人名额申请
Route::group('organ/organizationQuotaApply', function () {
    Route::post('listPage', 'organization.OrganizationQuotaApply/listPage');
    Route::post('get', 'organization.OrganizationQuotaApply/get');
    Route::post('del', 'organization.OrganizationQuotaApply/del');
    Route::post('applyAudit', 'organization.OrganizationQuotaApply/applyAudit');
});

//合伙人名额明细
Route::group('organ/organizationQuotaRw', function () {
    Route::post('listPage', 'organization.OrganizationQuotaRw/listPage');
    Route::post('get', 'organization.OrganizationQuotaRw/get');
    Route::post('exportExcel', 'organization.OrganizationQuotaRw/exportExcel');
});

//机构等级配置
Route::group('organ/organizationLevelConfig', function () {
    Route::post('listPage', 'organization.OrganizationLevelConfig/listPage');
    Route::post('listSelectPage', 'organization.OrganizationLevelConfig/listSelectPage');
    Route::post('get', 'organization.OrganizationLevelConfig/get');
    Route::post('saveOrUpdate', 'organization.OrganizationLevelConfig/saveOrUpdate');
    Route::post('del', 'organization.OrganizationLevelConfig/del');
});

//课程
Route::group('course/course', function () {
    Route::post('listPage', 'course.Course/listPage');
    Route::post('get', 'course.Course/get');
    Route::post('saveOrUpdate', 'course.Course/saveOrUpdate');
    Route::post('del', 'course.Course/del');
    Route::post('listStudentPage', 'course.Course/listStudentPage');
    Route::post('listStudentOpenPage', 'course.Course/listStudentOpenPage');
});

//词库
Route::group('course/lexicon', function () {
    Route::post('listPage', 'course.Lexicon/listPage');
    Route::post('get', 'course.Lexicon/get');
    Route::post('saveOrUpdate', 'course.Lexicon/saveOrUpdate');
    Route::post('del', 'course.Lexicon/del');
    Route::post('dels', 'course.Lexicon/dels');
    Route::post('importExcel', 'course.Lexicon/importExcel');
    // Route::post('exportExcel', 'course.Lexicon/exportExcel');
});

//文章管理
Route::group('course/courseArticle', function () {
    Route::post('listPage', 'course.CourseArticle/listPage');
    Route::post('get', 'course.CourseArticle/get');
    Route::post('saveOrUpdate', 'course.CourseArticle/saveOrUpdate');
    Route::post('del', 'course.CourseArticle/del');
    Route::post('dels', 'course.CourseArticle/dels');
    Route::post('detectArticleAudio', 'course.CourseArticle/detectArticleAudio');
    Route::post('generateArticleAudioFromScratch', 'course.CourseArticle/generateArticleAudioFromScratch');
});


//题目管理
Route::group('course/courseQuestion', function () {
    Route::post('listPage', 'course.CourseQuestion/listPage');
    Route::post('get', 'course.CourseQuestion/get');
    Route::post('saveOrUpdate', 'course.CourseQuestion/saveOrUpdate');
    Route::post('del', 'course.CourseQuestion/del');
    Route::post('importExcel', 'course.CourseQuestion/importExcel');
});

//小节管理
Route::group('course/courseSection', function () {
    Route::post('listPage', 'course.CourseSection/listPage');
    Route::post('get', 'course.CourseSection/get');
    Route::post('saveOrUpdate', 'course.CourseSection/saveOrUpdate');
    Route::post('del', 'course.CourseSection/del');
});


//单词词典
Route::group('dictionary/wordDictionary', function () {
    Route::post('listPage', 'dictionary.WordDictionary/listPage');
    Route::post('get', 'dictionary.WordDictionary/get');
    Route::get('getWordErrorCount', 'dictionary.WordDictionary/getWordErrorCount');
    Route::post('edit', 'dictionary.WordDictionary/edit');
    Route::post('del', 'dictionary.WordDictionary/del');
    Route::post('importExcel', 'dictionary.WordDictionary/importExcel');
    // Route::post('exportExcel', 'dictionary.WordDictionary/exportExcel');
    Route::post('resetErr', 'dictionary.WordDictionary/resetErr');
    Route::post('resetWordErr', 'dictionary.WordDictionary/resetWordErr');
});


//教学材料
Route::group('course/teachingMaterial', function () {
    Route::post('listPage', 'course.TeachingMaterial/listPage');
    Route::post('get', 'course.TeachingMaterial/get');
    Route::post('saveOrUpdate', 'course.TeachingMaterial/saveOrUpdate');
    Route::post('del', 'course.TeachingMaterial/del');
});


//课程字典
Route::group('course/courseDict', function () {
    Route::post('listPage', 'course.CourseDict/listPage');
    Route::post('listSelectPage', 'course.CourseDict/listSelectPage');
    Route::post('get', 'course.CourseDict/get');
    Route::post('saveOrUpdate', 'course.CourseDict/saveOrUpdate');
    Route::post('del', 'course.CourseDict/del');
});

Route::group('dictionary/wordResources', function () {
    Route::post('listPage', 'course.CourseDict/listPage');
    Route::post('listSelectPage', 'course.CourseDict/listSelectPage');
    Route::post('get', 'course.CourseDict/get');
    Route::post('saveOrUpdate', 'course.CourseDict/saveOrUpdate');
    Route::post('del', 'course.CourseDict/del');
});

//教练
Route::group('trainer/trainer', function () {
    Route::post('listPage', 'trainer.Trainer/listPage');
    Route::post('listSelectPage', 'trainer.Trainer/listSelectPage');
    Route::post('get', 'trainer.Trainer/get');
    Route::post('listAppointmentPage', 'trainer.Trainer/listAppointmentPage');
    Route::post('saveOrUpdate', 'trainer.Trainer/saveOrUpdate');
    Route::post('enable', 'trainer.Trainer/enable');
});

//教练审核
Route::group('trainer/trainerAudit', function () {
    Route::post('listPage', 'trainer.TrainerAudit/listPage');
    Route::post('get', 'trainer.TrainerAudit/get');
    Route::post('del', 'trainer.TrainerAudit/del');
    Route::post('auditApply', 'trainer.TrainerAudit/auditApply');
});

//教练头衔
Route::group('trainer/trainerTitle', function () {
    Route::post('listPage', 'trainer.TrainerTitle/listPage');
    Route::post('listSelectPage', 'trainer.TrainerTitle/listSelectPage');
    Route::post('get', 'trainer.TrainerTitle/get');
    Route::post('saveOrUpdate', 'trainer.TrainerTitle/saveOrUpdate');
    Route::post('del', 'trainer.TrainerTitle/del');
});

//休息时间申请管理
Route::group('core/coreTrainerTimeApply', function () {
    Route::post('listPage', 'core.CoreTrainerTimeApply/listPage');
    Route::post('get', 'core.CoreTrainerTimeApply/get');
    Route::post('del', 'core.CoreTrainerTimeApply/del');
    Route::post('audit', 'core.CoreTrainerTimeApply/audit');
});

//教练排班
Route::group('trainer/trainerTime', function () {
    Route::post('shiftSchedulingCalendar', 'trainer.TrainerTime/shiftSchedulingCalendar');
    Route::post('shiftScheduling', 'trainer.TrainerTime/shiftScheduling');
});

//语法年级
Route::group('grammar/grammarGrade', function () {
    Route::post('listPage', 'grammar.GrammarGrade/listPage');
    Route::post('listSelectPage', 'grammar.GrammarGrade/listSelectPage');
    Route::post('get', 'grammar.GrammarGrade/get');
    Route::post('saveOrUpdate', 'grammar.GrammarGrade/saveOrUpdate');
    Route::post('del', 'grammar.GrammarGrade/del');
});

//语法分类
Route::group('grammar/grammarCategory', function () {
    Route::post('listPage', 'grammar.GrammarCategory/listPage');
    Route::post('get', 'grammar.GrammarCategory/get');
    Route::post('saveOrUpdate', 'grammar.GrammarCategory/saveOrUpdate');
    Route::post('del', 'grammar.GrammarCategory/del');
});

Route::group('grammar/grammarCategory', function () {
    Route::post('listPage', 'grammar.GrammarCategory/listPage');
    Route::post('get', 'grammar.GrammarCategory/get');
    Route::post('saveOrUpdate', 'grammar.GrammarCategory/saveOrUpdate');
    Route::post('del', 'grammar.GrammarCategory/del');
});

//全科年级
Route::group('subject/grade', function () {
    Route::post('listPage', 'subject.Grade/listPage');
    Route::post('listSelectPage', 'subject.Grade/listSelectPage');
    Route::post('get', 'subject.Grade/get');
    Route::post('saveOrUpdate', 'subject.Grade/saveOrUpdate');
    Route::post('del', 'subject.Grade/del');
});

//全科教材
Route::group('subject/coursedict', function () {
    Route::post('listPage', 'subject.CourseDict/listPage');
    Route::post('listSelectPage', 'subject.CourseDict/listSelectPage');
    Route::post('get', 'subject.CourseDict/get');
    Route::post('saveOrUpdate', 'subject.CourseDict/saveOrUpdate');
    Route::post('del', 'subject.CourseDict/del');
});

//全科科目
Route::group('subject/subject', function () {
    Route::post('listPage', 'subject.subject/listPage');
    Route::post('listSelectPage', 'subject.subject/listSelectPage');
    Route::post('get', 'subject.subject/get');
    Route::post('saveOrUpdate', 'subject.subject/saveOrUpdate');
    Route::post('del', 'subject.subject/del');
});

//全科教学
Route::group('subject/teach', function () {
    Route::post('listPage', 'subject.Teach/listPage');
    Route::post('listSelectPage', 'subject.Teach/listSelectPage');
    Route::post('get', 'subject.Teach/get');
    Route::post('saveOrUpdate', 'subject.Teach/saveOrUpdate');
    Route::post('del', 'subject.Teach/del');
});

//全科章节
Route::group('subject/teachchapter', function () {
    Route::post('listPage', 'subject.TeachChapter/listPage');
    Route::post('listSelectPage', 'subject.TeachChapter/listSelectPage');
    Route::post('get', 'subject.TeachChapter/get');
    Route::post('saveOrUpdate', 'subject.TeachChapter/saveOrUpdate');
    Route::post('del', 'subject.TeachChapter/del');
    Route::post('setQuestion', 'subject.TeachChapter/setQuestion');
    Route::post('getQuestion', 'subject.TeachChapter/getQuestion');
});

//全科知识点
Route::group('subject/knowledge', function () {
    Route::post('listPage', 'subject.Knowledge/listPage');
    Route::post('listSelectPage', 'subject.Knowledge/listSelectPage');
    Route::post('listTreePage', 'subject.Knowledge/listTreePage');
    Route::post('get', 'subject.Knowledge/get');
    Route::post('saveOrUpdate', 'subject.Knowledge/saveOrUpdate');
    Route::post('del', 'subject.Knowledge/del');
});

//全科题库
Route::group('subject/question', function () {
    Route::post('listPage', 'subject.Question/listPage');
    Route::post('listSelectPage', 'subject.Question/listSelectPage');
    Route::post('get', 'subject.Question/get');
    Route::post('saveOrUpdate', 'subject.Question/saveOrUpdate');
    Route::post('del', 'subject.Question/del');
    Route::post('randomQuestion', 'subject.Question/randomQuestion');
    Route::get('questionTemplate', 'subject.Question/getQuestionTemplate');
    Route::post('import', 'subject.Question/import');
});

//教学材料
Route::group('core/coreTrialClassConfig', function () {
    Route::post('listPage', 'core.CoreTrialClassConfig/listPage');
    Route::post('get', 'core.CoreTrialClassConfig/get');
    Route::post('saveOrUpdate', 'core.CoreTrialClassConfig/saveOrUpdate');
    Route::post('del', 'core.CoreTrialClassConfig/del');
});


//教练薪资
Route::group('core/coreTrainerSalary', function () {
    Route::post('listPage', 'core.CoreTrainerSalary/listPage');
    Route::post('get', 'core.CoreTrainerSalary/get');
    Route::post('saveOrUpdate', 'core.CoreTrainerSalary/saveOrUpdate');
    Route::post('del', 'core.CoreTrainerSalary/del');
});

//薪资计算
Route::group('core/coreTrainerMonthSalary', function () {
    Route::post('listPage', 'core.CoreTrainerMonthSalary/listPage');
    Route::post('get', 'core.CoreTrainerMonthSalary/get');
    Route::post('exportExcel', 'core.CoreTrainerMonthSalary/exportExcel');
});


//消息管理
Route::group('system/sysNotification', function () {
    Route::post('listPage', 'system.SysNotification/listPage');
    Route::post('get', 'system.SysNotification/get');
    Route::post('save', 'system.SysNotification/save');
    Route::post('del', 'system.SysNotification/del');
});

//消息通知接收记录
Route::group('system/sysNotificationAccept', function () {
    Route::post('listPage', 'system.SysNotificationAccept/listPage');
    Route::post('get', 'system.SysNotificationAccept/get');
});

//词汇量检查配置
Route::group('core/coreVocabularySetting', function () {
    Route::post('listPage', 'core.CoreVocabularySetting/listPage');
    Route::post('get', 'core.CoreVocabularySetting/get');
    Route::post('saveOrUpdate', 'core.CoreVocabularySetting/saveOrUpdate');
    Route::post('del', 'core.CoreVocabularySetting/del');
});

//词汇量检查配置-词库管理
Route::group('core/coreVocabularyLexicon', function () {
    Route::post('listPage', 'core.CoreVocabularyLexicon/listPage');
    Route::post('get', 'core.CoreVocabularyLexicon/get');
    Route::post('saveOrUpdate', 'core.CoreVocabularyLexicon/saveOrUpdate');
    Route::post('del', 'core.CoreVocabularyLexicon/del');
    Route::post('importExcel', 'core.CoreVocabularyLexicon/importExcel');
});

//用户个人操作
Route::group('system/sysUser', function () {
    Route::post('listPage', 'system.SysUser/listPage');
    Route::post('get', 'system.SysUser/get');
    Route::post('saveOrUpdate', 'system.SysUser/saveOrUpdate');
    Route::post('del', 'system.SysUser/del');
    Route::post('removes', 'system.SysUser/removes');
    Route::post('resetPwd', 'system.SysUser/resetPwd');
    Route::post('enable/{userId}', 'system.SysUser/enable');
});
Route::group('system/userPersonage', function () {
    Route::post('updateInfo', 'system.UserPersonage/updateInfo');
    Route::post('reUpdatePwd', 'system.UserPersonage/reUpdatePwd');
    Route::post('phoneUpdatePwd', 'system.UserPersonage/phoneUpdatePwd');
});
//角色管理
Route::group('system/sysRole', function () {
    Route::post('listPage', 'system.sysRole/listPage');
    Route::post('get', 'system.sysRole/get');
    Route::post('saveOrUpdate', 'system.sysRole/saveOrUpdate');
    Route::post('del', 'system.sysRole/del');
});

//菜单管理
Route::group('system/sysMenu', function () {
    Route::post('listPage', 'system.sysMenu/listPage');
    Route::post('get', 'system.sysMenu/get');
    Route::post('bathSaveOrUpdate', 'system.sysMenu/bathSaveOrUpdate');
    Route::post('del', 'system.sysMenu/del');
    Route::get('listTree', 'system.sysMenu/listTree');
});

//参数配置表
Route::group('system/sysConfig', function () {
    Route::post('batch', 'system.SysConfig/batch');
    Route::get('listJson', 'system.SysConfig/listJson');
});


//语句类型
Route::group('say/category', function () {
    Route::post('listPage', 'say.Category/listPage');
    Route::post('listSelectPage', 'say.Category/listSelectPage');
    Route::post('get', 'say.Category/get');
    Route::post('saveOrUpdate', 'say.Category/saveOrUpdate');
    Route::post('del', 'say.Category/del');
});

//语句年级
Route::group('say/grade', function () {
    Route::post('listPage', 'say.Grade/listPage');
    Route::post('listSelectPage', 'say.Grade/listSelectPage');
    Route::post('get', 'say.Grade/get');
    Route::post('saveOrUpdate', 'say.Grade/saveOrUpdate');
    Route::post('del', 'say.Grade/del');
});

//语句课程-句型课
Route::group('say/teachSentence', function () {
    Route::post('listPage', 'say.TeachSentence/listPage');
    Route::post('listSelectPage', 'say.TeachSentence/listSelectPage');
    Route::post('get', 'say.TeachSentence/get');
    Route::post('saveOrUpdate', 'say.TeachSentence/saveOrUpdate');
    Route::post('del', 'say.TeachSentence/del');
    Route::post('import', 'say.TeachSentence/import');
    Route::post('listStudentOpenPage', 'say.TeachSentence/listStudentOpenPage');
    Route::post('listStudentPage', 'say.TeachSentence/listStudentPage');
});

//语句课程-认知课
Route::group('say/cognitiveCourse', function () {
    Route::post('listPage', 'say.CognitiveCourse/listPage');
    Route::post('get', 'say.CognitiveCourse/get');
    Route::post('saveOrUpdate', 'say.CognitiveCourse/saveOrUpdate');
    Route::post('del', 'say.CognitiveCourse/del');
});

//词汇量检查配置
Route::group('core/coreSayVocabularySetting', function () {
    Route::post('listPage', 'core.CoreSayVocabularySetting/listPage');
    Route::post('get', 'core.CoreSayVocabularySetting/get');
    Route::post('saveOrUpdate', 'core.CoreSayVocabularySetting/saveOrUpdate');
    Route::post('del', 'core.CoreSayVocabularySetting/del');
});

//测试记录
Route::group('learn/learnSayVocabularyRecord', function () {
    Route::post('listPage', 'learn.LearnSayVocabularyRecord/listPage');
    Route::post('get', 'learn.LearnSayVocabularyRecord/get');
    Route::get('getReport', 'learn.LearnSayVocabularyRecord/getReport');
});

//学习中心
Route::group('say/studyVideo', function () {
    Route::post('listPage', 'say.StudyVideo/listPage');
    Route::post('get', 'say.StudyVideo/get');
    Route::post('saveOrUpdate', 'say.StudyVideo/saveOrUpdate');
    Route::post('del', 'say.StudyVideo/del');
});

